fixed register, need to fix login