Fucked up - fix 1: login page validation fixed

the user can submit only when all the fields are valid. handled ajax
return value also.