Add error when registrating users with the same logins

Also add support for 'unique' constraint in general