Implement sending and receiving login codes