Hooked devise to authenticate users