fix bug with blank line checking in login
fix bug with blank line checking in login