Updated view_result as well as fixed login page bug.