added database constraints for username creation