In the script if user input contains space ' ' or does not contain @, then get warning.
Problem is that if space is deleted, warning does not disappears. What need to change?
I try to make redirection after successful login.
In php if password and user match, then $_SESSION['loggedin'] = 1;
$ifloggedin = $_SESSION['loggedin'];