changed function for user-registering, Fix #520