refactored the login for partner to redict
using php count
Merge branch 'feature/Partner_automatically_redirect' into develop