Fixed a bug on registrations page