added unique constrain on user
made email and username unique so can only be registered once