Authentication Integrated with mongodb