added verification checks and automatic redirect to verify after log in