Added the variables that will be sent to result.jsp, also added them to the session's attributes.
At the end it forwards to result.jsp.