@Override
	public MessageResponse logout() throws IOException {
		if(currentUser != null) {
			currentUser.setOnline(false);
			currentUser.getSubscriptions().clear();
			currentUser = null;
			return new MessageResponse("Successfully logged out.");
		}
		return new MessageResponse("You have to login first to perform this action!");
	}