added mongodb connection and got user registration working