began proper implementation of logic with inspiration from angular-login-example.