Added new user functionality and graceful exit on connection refused (WORKING).