Added error handling if no images when random image is pressed.
Removed logout.jsp as it wasn't necessary.
Displays to user who is logged in.
Implemented very basic HTTP error code handling.
Ensured user can't login when DB is empty (previously they could).