What check can be used in Gatling 1 to verify that login is successful?

I have following exec call for logging in:

http(“Post request with login credentials”)
.param(“username”, “${username}”)
.param(“password”, “${password}”)

What should be the check added to check that the login is successful? As after login, “Sign out” link is displayed, I added following check in above exec call, but it failed.

.check(regex(“Sign out”).find(1).exists))

This completely depends on your application.
Gatling works at the HTTP level, so you should check out the HTTP response from Firebug or Google Chrome dev tool and check against what you find there.

That helps, Thanks.