added check for username already existing