added php validation to login form