Added angular code for logging in