database and user insertion: encrypted password