added input validation to signin form