added behaviors for login page