Add registration and login

Closes #1 and #2