Adapted registration and login scripts.
Merge branch 'Login'