Minor changes in Login Check and sent mail notify