user authentication with modals implemented