Working module 'user' (finally) + code that smells bad but works ;)