Added alerts to login page
Fixed login process