Working on error reporting, adding sending to login in user/index.php