Add Log In and Register user functionality