Corrected total records count in paginated results
Added UI validations. This resolves #2