Added the session management and required fields in form