Changed login and register flow