make login return success and not redirect