adding error resistance to login form