Added logic to disallow certain user activity until the connection has been established with the server.