Forms as factories and login page