First Pull request for code review - Registration, User Log in, Pagination

Done po. Changed $limit to $total_thread