Fix login and signup and add redirects

- Add ids and names to form input elements
- Add redirects to index.php and login.php depending on if the user is
logged or not