Minor code refactoring that is responsible for user registration. Now a
request for user registration is only possible when specifying the path
'/login' in url.