correct error handling for registrations, fix password recovery, precompile assets