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

It prompted an error po when i directly assigned it to $comment->username :cry: 
Strict Standards: Creating default object from empty value in Board_Exercises/app/controllers/thread_controller.php on line 60