Should be working login. Needs testing though