added functions to insert and find documents for creating a new user and validating a user login