added check for existing users. Don't like trapping the exception like this though.