Made code refactoring for backend.php

Made variable $redir for redirect query and applied it into code.
Made alignment for $email and $name assignment operators. 
Deleted $success variable and simplified the 'if' statement for message despatch.