Change join page structure and id checcking logic

#3:Need DB work