directive login + tests