login bug fix

The steps to reproduce this bug:
1.- install the application
2.- execute syncdb & collectstatic as says in the docs
3.- navigate to the admin panel and enter a access code to the 'default' store.
4.- navigate to the root of the site and try to login entering the access code.