Making a basic user model with secure authentication