Fixes registration and login.