new login for nxtgn

This should make the login work with csrf