Added exception 
Fixed bug in home.jsp