bcrypting passwords before inserting them into the database
Moved encryption function to the util class