remove duplicacy of code in multiple files.....for signup login modal

remove duplicacy of code in multiple files.....for signup login modal