Changes to Login/Join modals Backend

Added functionaility to Join modal and also changed validation methods.