Login now works and handle errors!