Loginform validation bug fixed