// Hash Password
const hashedPassword = await bcrypt.hash(req.body.password, 10)
//compare password
let password = await bcrypt.compare(req.body.password,user.password)
if(!password){
return next(CustomErrorHandler.wrongCredential())
}