fixed error with registration of not unique username