added activity indicator and failure message to login screen.