Added basic login check