view engine added + redirect to index on login