Email login, improved password validation