fix bug with empty string when logging in