Logging in error messages, tab bar controller and logging out.