login implemented, still need to implement logout and figure out how to test directives