User authentication, register, login, logout working