Nearly final login, registration, profile access

Working auto-login, registration, profile access
TODO: edit profile