Added required fields

Signed-off-by: Lander Ghekiere <lander.ghekiere@gmail.com>
Added a check for a variable that might not have been posted with $_POST[]


Signed-off-by: Lander Ghekiere <lander.ghekiere@gmail.com>