fixed a buggy devise login issue