Login/user creation logic halfway