login and sending message

rough but works