add register and password functionality
Merge branch 'user-functions'