updated with user module and database login