Location added for error when no username or password