simple version of registration