Login and registration fixed