A working login model,  still messy. But getting closer