Bug Fix on Authentication

Improper checks locked up entire site.