Added "else condition"

Added "else condition" and cleared the session after a postback