Added user login functionality. Config for production db