new approach to login and registration - that does not seem to work...