added user authentication method, modilarized sorting methods and integrated sorting & pagination