Added rudimentary registration and login