Program now detects duplicate usernames and does not allow them.