Helper functions to detect login

Deleted RegisterForm, and moved code into UserBean
index.jsp can detect whether logged in
UserBean now checks whether setting fields to null