Search updates

Search.php - login modal bug
Register.php - redirection bug