use regular expressions when possible
use inController helper to determine whether to show the login menu