private void checkInput(){
        long selectedDate = choose.getSelectedDate().getTimeInMillis();
        if(time.getAlarmStartDate().getTime() < selectedDate){
            time.setStartDate(new Timestamp(selectedDate));
        }
        else {
            Calendar date = Calendar.getInstance();
            date.setTimeInMillis(time.getStartDate().getTime());
            choose.setSelectedDate(date);
        }
        try{
            time.setStartHour(checkInputForTextField(tfHour1, 23));
        }catch (IllegalStateException e){}
        try{
            time.setStartMinute(checkInputForTextField(tfMinute1, 59));
        }catch (IllegalStateException ex){}
        try{
            time.setEndHour(checkInputForTextField(tfHour, 23));
        }catch (IllegalStateException e){}
        try{
            time.setEndMinute(checkInputForTextField(tfMinute, 59));
        }catch (IllegalStateException ex){}
    }