Used mongoose model static methods for loggin in, route restructuring