minor fixing
store invities and give points to current user
store current user in session
as params[:to] is a hash no need to split it