Database-based login working for user/new.php.