Fixing register/login