added response for wrong password and fixed alerts