added admin index and login views; redirect handling for login