logging in and registering in modals