adding the registration proces which includes the methods for saving and salting passwords