added user insertion into db
added check to db to reject registration if username exists