login, reg, and errors functional