added username check in main login