Registration and Login function

Added hasing of password. Finalized registration and login functions
DB Update