Fixed bug which was stopping users from registering