ข้ามไปยัง login.component.ts - The login component uses the authentication service to login and logout of the application. It automatically logs the user .