Code clean for registering users