Added check if failed login is enabled.

Some other code optimizations on music and movie pages.