added login and redirect to other viewcontroller if successful