Kate- fixed login to work on localhost and feature stuff