Restyled index and added handling of authenticated state to main and login