solved errors and corrected files and added login_error.php