made login process asynchronous using a UIAlertView