Fixed minor bugs,
Added authentication check in categories.jsp