Getting login and create user dialogs wired to database