Created login and fixed angular errors