cleans up login view