Added pagination, fixed login page