Fix to index for login