Added actual log in functionality to authentication service.