implement the popups for login form