Added another login decorator that returns a json message