enhancement

removed click event for login and resgister, instead combined both in
delegates