basic user login, using mongodb to store user registration details