I am building a log-in form in Ember.

App.Router = Ember.Router.extend(
 // states here);

Then I have the following view

```
App.SignInView = Ember.View.extend
templateName: 'signin'

submitLogin: (event) ->
    login = @getPath('email.value')
    password = @getPath('password.value')
    console.log "Login: " + login + " Password: " + password
    // how do I redirect to a different state? I.e. "loggedIn"

```

submitLogin is triggered from the template by using {{action "submitLogin"}}

As you see from this snippet, I want to check a username/password before showing the "private" area of the web app. What's the best practice here?